package org.cyhz.domain;

import java.text.DateFormat;
import java.util.Date;

public class TimeWindow {
	private Date startDate;
	private Date endDate;

	public Date getStartDate() {
		return startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public TimeWindow(Date startDate, Date endDate) {
		super();
		this.startDate = startDate;
		this.endDate = endDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Override
	public String toString() {
		DateFormat df = DateFormat.getDateTimeInstance();
		return df.format(this.startDate) + "..." + df.format(this.endDate);

	}
}
